package com.ywd.materials.admin.config;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author lk
 * @date 2024/5/24 15:15
 */
@AllArgsConstructor
@Slf4j
@Component
public class InitRunner implements ApplicationRunner {

//  private IMultiService multiService;

  @Override
  public void run(ApplicationArguments args) throws Exception {
//    try {
//      // 本方法不要加事务，避免initSystem异常影响菜单初始化
//      multiService.initMenu();
//      multiService.initSystem();
//    } catch (Exception e) {
//      log.error("初始化失败", e);
//    }
  }

}
